import http from '@/request/http.js'
export const getSearchDic = params => http.post('/user/dic/list', params)
export const getBannerList = params => http.post('/user/banner/show', params) // banner
export const getAllCity = () => http.get('/user/dic/areaAll') // 只有省市 
export const getAllCitArea = () => http.get('/user/dic/areaAllV2') // 省市区
export const getAllCountry = () => http.post('/user/dic/regionAll') // 获取所有国家
export const getAllUserOccupation = () => http.get('/user/dic/IpOccupation') // 获取个人的所有职业

export const getUploadConfig = params => http.get('/works/works/ossStsSign?dir=' + params) // 上传图片获取参数
export const getOccupationDic = () => http.get('/user/dic/occupation') // ip 职业字典
export const getCompanyOrPerOccupationIds = params => http.post('/user/dic/ip', params) // ip 职业字典
export const getuserconfigVideo = params => http.post('/works/vod/createUploadVideo', params) //上传视频后台token

export const getuserconfig = params => http.get('/works/works/config', params) //上传图片后台token

export const getForeignRegionList = params => http.post('/user/dic/interList/intercontinental', params) //获取国外地区周国家
export const postCollect = params => http.post('/user/collect/collectBatch', params) // 收藏
export const postSingleCollect = params => http.post('/user/collect/collect', params) // 收藏
export const getVideoPlayUrl = params => http.post('/works/vod/getVideoPlayInfo', params) // 获取视频链接
